<?php
header("Content-type:text/html;charset=utf-8");
	class Person{
		public $name="Tome";
		public $gender="male";
		static $money=10000;
		public function __construct(){
			echo "这是父类的构造方法",PHP_EOL;
		}
		public function say(){
			echo $this->name,"\t is ",$this->gender,"\n\r";
		}
	}
	class Family extends Person{
		public $name;
		public $gender;
		static $money=100000;
		public function __construct(){
			parent::__construct();
			echo "这是子类的构造方法",PHP_EOL;
		}
		public function say(){
			parent::say();
			echo $this->name,"\t is ",$this->gender,"\t is",$this->age,PHP_EOL;
		}
		public static function jj(){
			echo "这是一个静态方法",Family::$money;
		}
	}
	$f1=new Family();
	$f1->name='Kate';
	$f1->gender="famale";
	$f1->age=25;
//	$f1::say();
	$f1->jj();

	
	
